package dk.flashnotes.fff.utils {
	import flash.utils.describeType;	

	public class DescribeTypeClasseWrap
	{
		
		//data
		private var _xmlType:XML;
		
		
		public function DescribeTypeClasseWrap(cClass:Class) {
			
			this.xmlType=describeType(cClass);
		}
		
		/************************
		* getters
		*/		
		
		//class
		public function get sClass():String {
			
			var aType:Array=xmlType.factory.@type.split("::");
			
			return aType[1];
		}
		
		//package
		public function get sPackage():String {
			
			var aType:Array=xmlType.factory.@type.split("::");
			return aType[0];
		
		}
		
		// variables array
		public function get xmlListVariables():XMLList {
			return xmlType.variable;
		}				public function get xmlType() : XML {
			return _xmlType;		}
		
		public function set xmlType(xmlType : XML) : void {
			_xmlType = xmlType;
		}
	}
}